package fun.easycode.webterminal.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("machine")
public class Machine {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    private String groupId;
    private String name;
    private String ip;
    private Integer port;
    private String username;
    private String password;

    private MachineType type;
    private String publicKey;

    @TableField(typeHandler = BooleanTypeHandler.class)
    private Boolean isJump;
    private String jumpMachineId;
}
